package com.aididi.util;

import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ：xuzexiang
 * @description：
 * @date ： 2021/12/30 16:39
 */
@Data
@NoArgsConstructor
@Builder
public class Menu {

    private String id;

    private String parentId;

    private String name;

    private List<Menu> children;

    public Menu(String id, String parentId, String name) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
    }
}
